package com.small.base.test.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户信息表(UserInfo)实体类
 *
 * @author makejava
 * @since 2020-06-18 17:52:56
 */

@Data
@ToString
@Entity
@Table(name = "user_info")
@ApiModel("用户信息表")
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 500684893574737707L;
    /**
     * 用户账号ID
     */
    @ApiModelProperty("用户账号ID")
    @Id
    @Column(name = "user_account_id")
    private String userAccountId;
    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    @Column(name = "name")
    private String name;
    /**
     * 年龄
     */
    @ApiModelProperty("年龄")
    @Column(name = "age")
    private Integer age;
    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    @Column(name = "mobile")
    private String mobile;
    /**
     * 性别
     */
    @ApiModelProperty("性别")
    @Column(name = "sex")
    private String sex;
    /**
     * 身份证号
     */
    @ApiModelProperty("身份证号")
    @Column(name = "id_card_number")
    private String idCardNumber;
    /**
     * 所属应用ID
     */
    @ApiModelProperty("所属应用ID")
    @Column(name = "app_id")
    private String appId;
    /**
     * 租户ID
     */
    @ApiModelProperty("租户ID")
    @Column(name = "tenant_id")
    private String tenantId;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 创建用户ID
     */
    @ApiModelProperty("创建用户ID")
    @Column(name = "created_id")
    private String createdId;
    /**
     * 修改用户ID
     */
    @ApiModelProperty("修改用户ID")
    @Column(name = "updated_id")
    private String updatedId;


}